package com.hp.gxw.vo;

import lombok.Data;

@Data
public class TableColsVO {

	private String type;
	
	private String title;
	
	private String field;
	
	private String fixed;
	
	private String align;
	
	private boolean totalRow;
	
	private Integer rowspan;
	
	private Integer colspan;
	
	private Integer minWidth;
	
	private String totalRowText;

	public TableColsVO(String type, String title, String field, String fixed, boolean totalRow,
			Integer rowspan, Integer colspan, Integer minWidth) {
		super();
		this.type = type;
		this.title = title;
		this.field = field;
		this.fixed = fixed;
		this.align = "center";
		this.totalRow = totalRow;
		this.rowspan = rowspan;
		this.colspan = colspan;
		this.minWidth = minWidth;
	}
	
	public TableColsVO(String type, String title, String field, String fixed, boolean totalRow,
			Integer rowspan, Integer colspan, Integer minWidth, String totalRowText) {
		super();
		this.type = type;
		this.title = title;
		this.field = field;
		this.fixed = fixed;
		this.align = "center";
		this.totalRow = totalRow;
		this.rowspan = rowspan;
		this.colspan = colspan;
		this.minWidth = minWidth;
		this.totalRowText = totalRowText;
	}

	public TableColsVO(String type, String title, String field, String fixed, boolean totalRow,
			Integer rowspan, Integer colspan) {
		super();
		this.type = type;
		this.title = title;
		this.field = field;
		this.fixed = fixed;
		this.align = "center";
		this.totalRow = totalRow;
		this.rowspan = rowspan;
		this.colspan = colspan;
	}

	public TableColsVO(String title, Integer colspan) {
		super();
		this.title = title;
		this.colspan = colspan;
		this.align = "center";
	}

	public TableColsVO(String title, String field, Integer rowspan, Integer minWidth) {
		super();
		this.title = title;
		this.field = field;
		this.rowspan = rowspan;
		this.minWidth = minWidth;
		this.align = "center";
	}

	public TableColsVO(String type, String title, String field, Integer rowspan, Integer minWidth) {
		super();
		this.type = type;
		this.title = title;
		this.field = field;
		this.rowspan = rowspan;
		this.minWidth = minWidth;
		this.align = "center";
	}

	public TableColsVO(String title, String field, Integer minWidth) {
		this.title = title;
		this.field = field;
		this.minWidth = minWidth;
		this.align = "center";
	}
}
